|
|
|
|
|
|
|
(table continued from previous page) |
|
|
|
|
| Controls | Properties | Settings | | Top | 540 | | Width | 1200 | | Textbox | Name | Text1 | | Height | 300 | | Left | 3540 | | Top | 120 | | Width | 1200 | | Textbox | Name | Text2 | | Height | 300 | | Left | 3540 | | Top | 540 | | Width | 1200 | | Command Button | Name | cmdGetList | | Caption | &Get List | | Height | 300 | | Left | 2160 | | Top | 1860 | | Width | 1200 |
|
|
|
|
|
|
Figure 12.2.
Laying out the LSTCNTRL form. |
|
|
|
|
|
|
|
|
Notice that in the preceding table, a single data control has been added to open the database and create a Snapshot object of the ValidNames table. It's always a good idea to use Snapshot objects as the RowSource for data-bound lists and combo boxes. Snapshot objects are static views of the data set and, even though they take up more workstation memory than Dynaset objects, they run faster. Notice also that we set the ListField property of the data-bound list to NameText. This fills the control with the values stored in the NameText column of the data set. |
|
|
|
|
|